package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Job;
import tech.aistar.mapper.JobMapper;
import tech.aistar.service.IJobService;


import java.util.List;

@Service
public class JobServiceImpl implements IJobService {
    @Autowired
    private JobMapper jobMapper;

    @Override
    public List<Job> findAll(String name, Integer typeId) {
        return jobMapper.findAll(name,typeId);
    }

    @Override
    public void delById(Integer id) {
        jobMapper.delById(id);
    }
}
